| RemapCmdclass | remapcmd.t[65] |
| Superclass Tree | Subclass Tree | Global Objects | Property Summary | Method Summary | Property Details | Method Details |
RemapCmd parses up the cmd and does not make any attempt to map them to existing objects in the game. Rather, it builds all the possible variations (by the use of "|", "(" and ")" operators) and then matches that against the user input FIRST before any other routines get a whack at it. You can also provide two or more disjoint phrases that are separated by semi-colon ";" to provide additional phrases that match.
If a match is found against a RemapCmd, it will then act on it. There are three different ways top operate on it.
- provide a complete text phrase replacement (remappedCmd, or use template) - if no replacement text phrase is provided, the execute() routine is run for that object; within that execute routine, you have two possibilities * emit some messages to the console via say() or "..." * use doInstead(action[,dobj[,iobj[,aobj]]]) within to execute that resolved command instead - NOTE: If text phrase is present, execute() will NOT be run!
Note that RemapCmd does not accept wildcards or punctuation of any sort other than "," and "'" -- and ";" to separate distinct input phrases.
class
RemapCmd : object
cmd
cmdTermHash
cmdTerms
doInsteadItems
during
remappedCmd
turnsTaken
when
where
doInstead
execute
execute_
turnSequence
cmd | remapcmd.t[67] |
cmdTermHash | remapcmd.t[169] |
cmdTerms | remapcmd.t[166] |
doInsteadItems | remapcmd.t[130] |
during | remapcmd.t[94] |
remappedCmd | remapcmd.t[73] |
turnsTaken | remapcmd.t[102] |
when | remapcmd.t[88] |
where | remapcmd.t[85] |
doInstead (action, [args]) | remapcmd.t[136] |
execute ( ) | remapcmd.t[79] |
execute_ ( ) | remapcmd.t[109] |
turnSequence ( ) | remapcmd.t[121] |